package red.stu.mc.api;

import javax.annotation.Nullable;

import net.minecraft.block.Block;
import net.minecraft.item.Item;

public final class ItemApi {

	public static int getIdFromItem(Item itemIn) {
		return Item.getIdFromItem(itemIn);
	}
	
	public static Item getItemById(int id) {
		return Item.getItemById(id);
	}
	
	public static Item getItemFromBlock(Block blockIn) {
		return Item.getItemFromBlock(blockIn);
	}
	
	@Nullable
	public static Item getByNameOrId(String id) {
		return Item.getByNameOrId(id);
	}
	
}
